﻿using System;
using System.Linq;

namespace MusicPlayer
{
    class OrderRandom : IOrder
    {
        static Random rndGenerator = new Random();

        public int GetNextToPlay(int currentSong, int totalSongs)
        {
            return rndGenerator.Next(totalSongs);
        }

        public int GetPrevToPlay(int currentSong, int totalSongs)
        {
            return rndGenerator.Next(totalSongs);
        }
    }
}
